Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#18] close iRODSFS file handles before interpreter exit. #19

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

d-w-moore
Copy link
Collaborator

Allows writes to iRODSFS-generated file handles to be automatically handled at the right time. If happening at interpreter exit due to auto-closing data objects, then make sure these higher-level iRODSFS handles are closed out at the right time -- that is, first thing.

@d-w-moore
Copy link
Collaborator Author

d-w-moore commented Aug 23, 2024

This will have a companion branch in my fork of Python iRODS Client, which commit/PR I will link to this discussion once that PR is ready.

@d-w-moore
Copy link
Collaborator Author

See accompanying Pull Request at irods/python-irodsclient#611

@d-w-moore d-w-moore marked this pull request as draft August 24, 2024 04:26
@d-w-moore
Copy link
Collaborator Author

Converting to draft for the time being...

If available, the irods.at_client_exit.register feature of the
Python iRODS Client is called in an attempt to properly schedule
the auto-closing (and therefore auto-flushing) of content written
to iRODSFS handles before Python interpreter exit.
@d-w-moore
Copy link
Collaborator Author

See companion pull request irods/python-irodsclient#616

fs_irods/iRODSFS.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants